﻿using ProjectCore.Domain.Model.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProjectCore.Domain.DomainService
{
  public  interface IRolesDomainService
    {
        /// <summary>
        /// 角色显示
        /// </summary>
        /// <returns></returns>
        Task<List<Roles>> GetRoles();
        /// <summary>
        /// 角色添加
        /// </summary>
        /// <param name="roles"></param>
        /// <returns></returns>
        Task<int> Add(Roles roles);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="roles"></param>
        /// <returns></returns>
        Task<int> Upt(Roles roles);
        /// <summary>
        /// 逻辑删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<int> IsDel(int Id);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<Roles> Edit(int Id);
        /// <summary>
        /// 获取角色权限集合
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<List<RoleMenus>> GetRoleMenus(int Id);
        /// <summary>
        /// 修改角色权限
        /// </summary>
        /// <param name="vs"></param>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<int> UptRoleMenus(List<int> vs, int Id);
    }
}
